<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <style type="text/css">
        table {border-collapse: collapse; font-size: 14px; width: 80%; margin: auto;}
        table, th, td {border: 1px solid darkslategray;padding: 10px}
    </style>
</head>
<body>
<form th:action="@{/etc/findAll}" method="post">
<div style="text-align: center">
    <span style="color: darkslategray; font-size: 30px">员工详情</span>
    <hr/>
    <a th:href="@{/etc/toAddYgong}">添加员工</a>
    <a th:href="@{/etc/addyonghu}">注册用户</a>
    <a th:href="@{/etc/dengluyonghu}">登录用户</a>
<!--    <a th:href="@{/etc/upioad}" type="primary" name="file">批量导入</a>-->
    用户名：<input type="text" name="name"/>
    <input type="submit" value="模糊查询"/>
    <table class="list">
        <tr>
            <th>id</th>
            <th>姓名</th>
            <th>性别</th>
            <th>出生日期</th>
            <th>入职时间</th>
            <th>学历</th>
            <th>职务</th>
            <th>住址</th>
            <th>电话</th>
            <th>紧急联系人</th>
            <th>部门</th>
            <th>设置</th>
        </tr>
        <tr th:each="etc : ${etcList}">
            <td th:text="${etc.id}"></td>
            <td th:text="${etc.name}"></td>
            <td th:text="${etc.sex}"></td>
            <td th:text="${etc.sr}"></td>
            <td th:text="${etc.rzsj}"></td>
            <!--<td th:text="${#dates.format(etc.birthday,'yyyy-MM-dd')}"></td>-->
            <td th:text="${etc.xueli}"></td>
            <td th:text="${etc.zhiwu}"></td>
            <td th:text="${etc.zhuzhi}"></td>
            <td th:text="${etc.dianhua}"></td>
            <td th:text="${etc.lxr}"></td>
            <td th:text="${etc.bum}"></td>
            <td> <a th:href="@{/etc/toUpdate(id=${etc.id})}">修改</a>
                <a th:href="@{/etc/deleteById(id=${etc.id})}">删除</a></td>

        </tr>
    </table>
</div>
    </form>
</body>
</html>